package com.shopping.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("messages")
public class Message {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("username")
    private String username;

    @TableField("content")
    private String content;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("is_replied")
    private Boolean isReplied = false;

    @TableField("reply")
    private String reply;

    @TableField("reply_time")
    private LocalDateTime replyTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private User user;
}